const {
	http
} = uni.$u

// 提交登录
export const postLogin = (params, config = {}) => http.post('loginNotCaptcha', params, config);
// 登录密码加密
export const getEncode = (params) => http.get('app/api/encode', params);
// 用户详情-个人中心
export const getUserInfo = (params) => http.get('app/getInfo', params);
// 发送验证码
export const sendCode = (params, config = {}) => http.post('api/short/message', params, config);
// 验证码检测
export const checkCode = (params) => http.get('api/short/message/checkShortMessage', params);
// 更新密码
export const savePwd = (params, config = {}) => http.get('smzgl/api/ryxx/updateUserPassword', params, config);
// 关于我们
export const getAbout = (params) => http.get('app/aboutus', params);
// 附件列表
export const fileList = (params) => http.get('core/attach/list', params);
// 企业概况
export const cpgOverview = (params) => http.get('app/cpgOverview', params);
// 考勤查询 - 首页
export const getPsatd = (params) => http.get('app/psatd', params);
// 工人情况 - 首页
export const appSsu = (params) => http.get('app/ssu', params);
// 今日考勤 - 首页
export const atdToday = (params) => http.get('app/atdToday', params);
// 工人分布 - 首页
export const atdCount = (params) => http.get('app/atdmonth', params);

// -- 班组管理
// 班组概况
export const cpgGo = (params) => http.get('app/go', params);
// 班组成员
export const cpgMember = (params) => http.get('app/groupMembers', params);

// -- 人员管理
// 人员情况概况
export const getSpc = (params) => http.get('app/spc', params);
// 人员列表
export const getStaff = (params) => http.get('app/staffs', params);
// 人员详情
export const getStaffInfo = (params) => http.get('app/staffs/' + params.id, params);
// 根据业务id查看人员信息表原始数据
export const getStaffOriginalInfo = (params) => http.get('smzgl/ryxx/' + params.id, params);
// 附件列表
export const getFileList = (params) => http.get('core/attach/list', params);
// 新的附件列表 含数量
export const getAtta = (params) => http.get('app/atta', params);
// 业务附件
export const getNewFile = (params) => http.get('app/atta', params);

// -- 考勤管理
// 今日考勤
export const getWork = (params) => http.get('app/atdSummary', params);
// 考勤汇总 todo
export const getRsd = (params) => http.get('app/rsd', params);
// 考勤统计 - 日历 todo
export const getAtd = (params) => http.get('app/dailyATD', params);

// --工资
// 工资发放情况
export const getWagesCount = (params) => http.get('app/salaryMonth', params);
// 工资列表
export const getWagesList = (params) => http.get('app/salaryByGroup', params);
// 班组人员工资发放列表
export const getWagesPopList = (params) => http.get('app/ssd', params);
// 工资发放详情 -- 共用 getWagesPopList


// --培训
// 培训概览
export const getAppto = (params) => http.get('app/to', params);
// 培训列表-记录
export const getTrain = (params) => http.get('app/trains', params);
// 培训详情
// export const getTrainDetail = (params) => http.get('app/trainsDetailed', params);
export const getTrainDetail = (params) => http.get('app/trainsBy', params);

// 新增补卡 - 改
export const rykqBk = (params, config = {}) => http.post('app/rykqBk/addSubmit', params, config);
// 补卡记录 - 与工人端的不同
export const rykqBkList = (params) => http.get('app/rykqBk/listMap', params);
// 考勤打卡 - 打卡规则
export const getDkDate = (params) => http.get('kqgl/AtdRuleDetail/getDkDate', params);
// 进出场明细
export const makeUpCard = (params, config = {}) => http.post('app/makeUpCard', params, config);


// 静态对比 auth
export const getDetectLiveFaceAuth = (params, config = {}) => http.post('api/tencent/getDetectLiveFaceAuth', params,
	config);
// 比对签名
export const getIaiAuth = (params, config = {}) => http.post('api/tencent/getIaiAuth', params, config);

// 附件上传
export const upload = (params, config = {}) => http.upload('core/attach/uploadAttach', params, config);
// 业务编号获取
export const getBid = (params) => http.get('app/getBid', params);
// 上传打卡图片后 调用
export const appClockOnImg = (params) => http.get('app/appClockOnImg', params);
// 打卡成功
export const appClockOn = (params, config = {}) => http.post('app/appClockOn', params, config);
// 企业详情
export const deptDetail = (params) => http.get('app/deptDetail/' + params.id, params);
// 获取腾讯OCR签名接口
export const getOcrAuth = (params, config = {}) => http.post('api/tencent/getOcrAuth', params, config);

// 字典
export const getDict = (params) => http.get('system/dict/data/type/' + params.name, params);

// 打卡范围检测
export const checkDkfw = (params) => http.get('kqfwgl/checkDkfw/' + params.jw, params);
// 范围展示
export const fangwei = (params) => http.get('kqfwgl/list', params);


// 字典单查 新加
export const getDictInfo = (params) => http.get('app/dictTran', params);
// 补卡详情 新加
export const rykqBkInfo = (params) => http.get('app/rykqBk/' + params.id, params);

// --实名板块接口
// 所属企业列表
export const ssdwList = (params) => http.get('xmxx/bdxx/ssdwList', params);
// 校验身份证是否已存在
export const checkBolZjhm = (params) => http.get('smzgl/ryxx/checkBolZjhm', params);
// 根据证件号码查询基本信息
export const getRyxxByZjhm = (params) => http.get('smzgl/ryxx/getRyxxByZjhm/' + params.zjhm, params);
// 校验手机号是否已存在
export const checkBolLxfs = (params) => http.get('smzgl/ryxx/checkBolLxfs', params);
// 根据工程获得班组列表
export const groups = (params) => http.get('app/groups', params);
// 业务保存
export const ryxxSmrz = (params, config = {}) => http.post('salary/ryxxSmrz', params, config);
// 业务列表
export const authlist = (params) => http.get('app/authlist', params);
// 根据业务id查看业务信息
export const authDetail = (params) => http.get('app/authDetail', params);
// 业务修改
export const putRyxxSmrz = (params, config = {}) => http.put('salary/ryxxSmrz', params, config);
// 业务删除
export const deleteRyxxSmrz = (params, config = {}) => http.delete('salary/ryxxSmrz/' + params.id, params, config);
// 业务提交
export const submitRyxxSmrz = (params, config = {}) => http.put('salary/ryxxSmrz/submit/' + params.id, params, config);


// -- 调岗板块
// 业务列表
export const gafferlist = (params) => http.get('app/mglist', params);
// 业务保存
export const addMg = (params) => http.post('app/addMg', params);
// 查看调岗人员明细列表
export const getModifyGroupDetail = (params) => http.get('ryxx/modifygroup/getModifyGroupDetail', params);
// 点击调岗按钮
export const modifygroupDetail = (params) => http.put('ryxx/modifygroupDetail', params);
// 业务修改
export const updateMg = (params) => http.put('app/updateMg', params);
// 根据业务id查看信息
export const mgDetail = (params) => http.get('app/mgDetail', params);
// 业务删除
export const delMg = (params) => http.get('app/delMg', params);
// 业务提交
export const submitMg = (params) => http.get('app/submitMg', params);
// 业务审批列表【待办列表】
// export const ssdwList = (params) => http.get('xmxx/bdxx/ssdwList', params);
// 业务审批列表【已办列表】
// export const ssdwList = (params) => http.get('xmxx/bdxx/ssdwList', params);
// 业务审核
// export const ssdwList = (params) => http.get('xmxx/bdxx/ssdwList', params);


// 个人中心的实名认证
export const addHaveRyxxSmrz = (params, config) => http.post('app/addHaveRyxxSmrz', params, config)
